package com.party.core.service.competition;

import com.party.common.paging.Page;
import com.party.core.model.competition.CompetitionMember;
import com.party.core.model.competition.WithMember;
import com.party.core.model.member.Member;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * 参赛人员
 * 
 * @author Administrator
 *
 */
public interface ICompetitionMemberService extends IBaseService<CompetitionMember> {

	CompetitionMember findByProjectAndMember(String memberId, String projectId);

	List<CompetitionMember> webListPage(CompetitionMember competitionMember, Member member, Map<String, Object> params, Page page);

	int getCount(CompetitionMember t);

	List<CompetitionMember> checkNumberPai(String cMemberId, String numberPai, String projectId);

	/**
	 * 赛事人员信息
	 * @param params 查询参数
	 * @param page 分页参数
	 * @return 人员信息列表
	 */
	List<WithMember> withMemberList(Map<String, Object> params, Page page);

	/**
	 * 查询某机构下的所有赛事项目的参加者
	 * @param partnerId
	 * @return
	 */
	List<Member> getCompetitionMembersByPartnerId(String partnerId);

	void deleteByProjectId(String projectId);
}
